# -*- coding: utf-8 -*-
# @Author: Hebin Yang
# @Date:   2019-04-13 22:44:21
# @Last Modified by:   Hebin Yang
# @Last Modified time: 2019-04-13 22:52:25

"""
输入秒数，求该秒数所有的 小时数
example: input 3601， output: 1
"""
HOURS_ONE_DAY = 24
MINUTES_ONE_HOUR = 60
SECONDS_ONE_MINUTES = 60
SECONDS_ONE_HOUR = MINUTES_ONE_HOUR * SECONDS_ONE_MINUTES

second = input("Please input second number:")
# input is string, convert string to int
second = int(second)
# calc seconds in hour

# method one, using //
hour = second // SECONDS_ONE_HOUR
print (str(second) + " in " + str(hour) + " hour")

# method two, using int, skip < 1 float part
hour = int(second / SECONDS_ONE_HOUR)
print (str(second) + " in " + str(hour) + " hour")
# print use string add is diffcult and ugly
# can use formator like c
print ("%d in %d hour" % (second, hour))